package ru.sanluck.tg;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Getter
@Setter
@Entity(name = "tg_users")
public class TgUserEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    @NotNull
    private String firstName;
    @NotNull
    private Boolean isBot;
    private String lastName;
    private String userName;
    private String languageCode;
    @Enumerated(EnumType.STRING)
    private Dialog dialog;
}
